package ch.vd.dec.selt.petale

class TypePrestation {
	
	String name
	
	static mapping = {
		table 'TTY_PRE_FAC'
		name column:'name'
		id generator:'sequence', params:[sequence: 'TTY_PRE_FAC_SEQ']
		version true
	}
	static hasMany = [prestations:Prestation]
	
	static constraints = {
		name(blank: false, maxSize: 255, unique: true)
    }
	
	String toString(){
		return name
	}
}
